package com.siblings.loan.ui.loan.impl

import com.siblings.loan.http.ApiService
import com.siblings.loan.http.ApiService.addCommonParams
import com.siblings.loan.http.HttpHelper
import com.siblings.loan.http.IHttpCallback
import org.json.JSONObject

/**
 * Siblings
 * @Author wwdeng
 * @CreateTime: 2024/7/4 15:39
 * @Annotation：Model层  接口实现类
 */
class SibLoanLayerModelImpl{

    /**
     * 获取总流程
     */
    fun loadSibProcessAction(callBack: IHttpCallback) {
        val httpUrl = ApiService.getHttpUrl(ApiService.API_URL.SIB_API_PROCESS_URL)
        val params = JSONObject().addCommonParams().apply {
            put("path", ApiService.API_PATH.SIB_API_PROCESS_PATH)
        }
        HttpHelper.postSibAction(httpUrl,params,callBack)
    }
}